<?php 
	//error reporting
	ini_set('error_reporting', E_ALL);
	ini_set('display_errors', 1);
	
	//-----------------------------------------------------------------------------------
	include_once("../../classes/Database.class.php");
	$db = new Database();
	//-----------------------------------------------------------------------------------
	
	//----------------------------------------
	//GENERO OPTIONS CATEGORIAS
	$data_array = $db->get_data("categorias");	
	$categoria_options = "";
	foreach($data_array as $record){
		extract($record);
		if(!empty($categoria_options)) $categoria_options.="\n\t\t\t\t\t";
		$categoria_options .= "<option value='$id'>$nombre</option>";
	}
	//----------------------------------------		
?>

				<table id="categoryFilter">
					<tr>
						<td class="rowTitle">Categor&iacute;a:</td>
						<td>
							<select id="categoryFilter" onchange="viewCategoryReport(this.value)">
								<option value="">-- Seleccionar categor&iacute;a --</option>
								<?php echo $categoria_options; ?>
							</select>							
						</td>
					</tr>					
				</table>
			